#ifndef LOGGER_H
#define LOGGER_H

#include <QStringListModel>
#include <QStringList>
#include <QListView>
#include <QDateTime>

class Logger
{
    QStringListModel *model;
    QStringList       list;
    QListView        *log;
public:
    explicit Logger();
    explicit Logger(QStringListModel *m ,QListView *v);

    /**
     * @brief print - print in the panel
     * @param s
     */
    void print(QString s);

    /**
     * @brief write - write to the file
     * @param s
     */
    void write(QString s);
};

#endif // LOGGER_H
